<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	</head>
	<body>
		<div id="King" style="width: 300px;height: 300px;margin: 0 auto;background-color: #0000FF;"></div>
		<script type="text/javascript">
			$(function(){
				$("div").on({
					mouseenter:function(){
						$("div").css("backgroundColor","red")
					},
					click:function(){
						$("div").css("backgroundColor","green")
					}
				})
				$("div").off("click")
			})
		</script>
	</body>
</html>
